<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1 charset=utf-8">
	<script src="js/scroll.js"></script>
	<meta charset="utf-8">
</head>
<?php

if (isset($_POST['sendmail']) && $_POST['sendmail']=="send")
{
	
	$from=$_POST['from'];
	$to='dangnguyenla1@yahoo.com.vn';
	$subject=$_POST['subject'];
	$message=$_POST['message'];
	//$headers  = "From: $from\r\n";
	//$headers .= "Content-type: text/html\r\n";
	$options="Content-type:text/html;charset=utf-8\r\nFrom:$from\r\nReply-to:$from";
	//print $options;
	//exit();
	mail($to,$subject,$message,$options);
	echo"Ðã gửi mail";
}




?>
<body>
<form method="post" action="tes.php">
Người gửi:<input type="text" name="from" size="70" /><br />
Tiêu đề :<input type="text" name="subject" size="70"/><br />
Nội dung :<br />
<textarea name="message" rows="10" cols="70">
</textarea><br />
<input type="submit" value="send" name="sendmail"/>
</form>
</body>
</html>